.class public Lcom/instagram/creation/video/a/g;
.super Ljava/lang/Object;
.source "VideoShutterButtonListener.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field private final a:Lcom/instagram/creation/video/a/f;

.field private b:Z

.field private c:Lcom/instagram/creation/video/f/a;


# direct methods
.method public constructor <init>(Lcom/instagram/creation/video/a/f;Lcom/instagram/creation/video/f/a;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 19
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 15
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/creation/video/a/g;->b:Z

    .line 20
    iput-object p1, p0, Lcom/instagram/creation/video/a/g;->a:Lcom/instagram/creation/video/a/f;

    .line 21
    iput-object p2, p0, Lcom/instagram/creation/video/a/g;->c:Lcom/instagram/creation/video/f/a;

    .line 22
    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 4
    .parameter "v"
    .parameter "event"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 26
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_2

    .line 28
    invoke-virtual {p1}, Landroid/view/View;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/creation/video/a/g;->c:Lcom/instagram/creation/video/f/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/f/a;->ae()Lcom/instagram/creation/video/a/e;

    move-result-object v0

    sget-object v1, Lcom/instagram/creation/video/a/e;->d:Lcom/instagram/creation/video/a/e;

    if-eq v0, v1, :cond_1

    .line 42
    :cond_0
    :goto_0
    return v2

    .line 32
    :cond_1
    iput-boolean v3, p0, Lcom/instagram/creation/video/a/g;->b:Z

    .line 33
    iget-object v0, p0, Lcom/instagram/creation/video/a/g;->a:Lcom/instagram/creation/video/a/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/a/f;->f()V

    goto :goto_0

    .line 34
    :cond_2
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-ne v0, v3, :cond_0

    .line 35
    iget-boolean v0, p0, Lcom/instagram/creation/video/a/g;->b:Z

    if-eqz v0, :cond_3

    .line 37
    iget-object v0, p0, Lcom/instagram/creation/video/a/g;->a:Lcom/instagram/creation/video/a/f;

    invoke-interface {v0}, Lcom/instagram/creation/video/a/f;->h()V

    .line 40
    :cond_3
    iput-boolean v2, p0, Lcom/instagram/creation/video/a/g;->b:Z

    goto :goto_0
.end method
